package test

import (
	"net/http"

	"gin_web/orm"
	"gin_web/orm/models"
	"github.com/gin-gonic/gin"
)

func Test(c *gin.Context) {
	model := models.TradeMode{
		Code:    1,
		Message: "test",
	}
	commitResult := orm.Insert(&model)
	c.JSON(http.StatusOK, gin.H{"result": commitResult})
}
